const state = {
  profile: null,
  banners: [],
  activities: [],
  products: [],
  cart: []
}

const mutations = {
  INIT_PROFILE (state, profile) {
    state.profile = profile
  },
  LOAD_BANNER (state, scroll) {
    state.banners = scroll
  },
  LOAD_ACTIVITY (state, activity) {
    state.activities = activity
  },
  LOAD_PRODUCT (state, product) {
    state.products = product
  },
  LOAD_CART (state, cart) {
    state.cart = cart
  }
}

export default {
  state,
  mutations
}
